package com.example.wallpaper.vm;

import android.graphics.drawable.Drawable;

import com.example.wallpaper.WallFragment;

public class WallListVM {

    private WallFragment.Callbacks mCallbacks;
    private Drawable mDrawable;
    private String mImgUrl;

    public WallListVM(WallFragment.Callbacks callbacks,String imgUrl,Drawable drawable){
        mCallbacks = callbacks;
        mImgUrl = imgUrl;
        mDrawable = drawable;
    }

    public void onDetail(){
        mCallbacks.onDetail(mImgUrl);
    }

    public void setCallbacks(WallFragment.Callbacks mCallbacks) {
        this.mCallbacks = mCallbacks;
    }

    public void setImgUrl(String imgUrl) {
        this.mImgUrl = imgUrl;
    }

    public Drawable getDrawable() {
        return mDrawable;
    }
}
